<%@ include file="/common/taglibs.jsp"%>
<%@ include file="/common/header.jsp" %>	
<form:form commandName="receta">
			<table border="0" style="width:100%; height:100%" align="center">
				<tr style="height:5%">
					<td>&nbsp;</td>
					<td><label class="text11">Lista de Recetas</label></td>
					<td>&nbsp;</td>
				</tr>
				<tr style="height:30%" valign="top">
					<td style="width:15%">&nbsp;</td>
					<td style="width:70%" bgcolor="#FFFFFF">

						<fieldset class="text10" >
							<legend class="text10">Filtros de B&#250;squeda:</legend>
								<table border="0">	
								  <tr>
									<td style="width: 20%">&nbsp;</td>
									<td style="width: 28%">&nbsp;</td>
									<td style="width: 4%">&nbsp;</td>
									<td style="width: 20%">&nbsp;</td>
									<td style="width: 28%">&nbsp;</td>
								  </tr>						  
								  <tr>
									<td class="text1" >Nombre: </td>
									<td><form:input path="nombre" size="50"/></td>
									<td>&nbsp;</td>
									<td>&nbsp;</td>
									<td>&nbsp;</td>
								  </tr>
								  <tr>
									<td>&nbsp;</td>
									<td>&nbsp;</td>
									<td>&nbsp;</td>
									<td>&nbsp;</td>
									<td>&nbsp;</td>
								  </tr>
								  <tr>
									<td>&nbsp;</td>
									<td>
									    <input type="button" id="Agregar" name="Agregar" 
									    	onclick="location.href='<c:url value="/receta.htm"/>'"
									        value="Agregar"/>
									</td>
									<td>&nbsp;</td>
									<td><input type="submit" id="Buscar" name="Buscar"  value="Buscar"/></td>
									<td>&nbsp;</td>				
								  </tr>				  					  
								</table>	
						</fieldset>						

					</td>
					<td style="width:15%">&nbsp;</td>									
				</tr>
				<tr style="height:5%">
					<td>&nbsp;</td>
					<td>&nbsp;</td>	
					<td>&nbsp;</td>	
				</tr>
				<tr style="height:60%">
					<td>&nbsp;</td>	
					<td valign="top">
					
						<display:table name="recetas" cellspacing="0" cellpadding="0" requestURI="" 
						    defaultsort="1" id="recetas" pagesize="25" class="table" export="true" style="width: 700px">
						    
						    <display:column property="nombre" escapeXml="true" sortable="true" title="Nombre"
						        url="/receta.htm?idReceta?from=list" paramId="idReceta" paramProperty="idReceta"/>
						        
						    <display:column property="precio" escapeXml="true" sortable="true" title="Precio"/>

						    <display:setProperty name="paging.banner.item_name" value="receta"/>
						    <display:setProperty name="paging.banner.items_name" value="recetas"/>
						
						    <display:setProperty name="export.excel.filename" value="Lista Receta.xls"/>
						    <display:setProperty name="export.pdf.filename" value="Lista Receta.pdf"/>
						</display:table>																	
					
					</td>
					<td>&nbsp;</td>			
				</tr>		
			</table>	
</form:form>				
<%@ include file="/common/footer.jsp" %>	